﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DAplicaciones1;
using persistencia;
using Microsoft.Win32;
using System.Configuration;

namespace interfaz
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Sistema sistema = Sistema.GetSistema();
            sistema.OPersistente.Ip= new FPersistencia();


            string pathBase = ConfigurationSettings.AppSettings["RutaBase"].ToString();

            sistema.OPersistente.Ip.conectarse(pathBase);
            sistema.cargarListasBD();
            Application.Run(new FormLogin());
        }
    }
}
